/**
 * create by young (young2f@outlook.com) on 2020/9/12
 */


'use strict';
import React from 'react';
import {connect} from 'dva/index';
import {DatePicker, Form, Select, Tabs} from 'antd';
import FormBase from '../../components/Base/FormBase';
import moment from 'moment';
import 'moment/locale/zh-cn';
import PaymentApplyForTree from "./tabs/PaymentApplyForTree";
import styles from "../index.less";
import PaymentApplyTable from "./tabs/PaymentApplyTable";

moment.locale('zh-cn');

@Form.create()
@connect(({
            user,
            global,
            dynamicLabel,
            procure,
            finance
          }) => ({...user, ...global, ...procure, ...finance, ...dynamicLabel}))
export default class Payment extends FormBase {
  constructor(props) {
    super(props);
    this.state = {};
  }


  componentDidMount() {
    this.setState({});

  }

  render() {
    return <Form className={styles.content}>
      <Tabs defaultActiveKey={'1'}>
        <Tabs.TabPane tab={'目录'} key="1">
          <PaymentApplyForTree></PaymentApplyForTree>
        </Tabs.TabPane>
        <Tabs.TabPane tab={'列表'} key="2">
          <PaymentApplyTable></PaymentApplyTable>
        </Tabs.TabPane>
      </Tabs>
    </Form>;
  }
}
